% load the data:
Params;
IdxAndNNZCompactionData;

eIdxs = 1:2:length( csrBytes );
oIdxs = 2:2:length( csrBytes );

PlotCompaction( csrBytes( eIdxs ), totCompact( eIdxs ), idxCompact( eIdxs ), nnzCompact( eIdxs ), params, '../gfx/INZCompactionVsCSRBytes_EvenMtxs' );
PlotCompaction( csrBytes( oIdxs ), totCompact( oIdxs ), idxCompact( oIdxs ), nnzCompact( oIdxs ), params, '../gfx/INZCompactionVsCSRBytes_OddMtxs' );

[ totCompact, sortIdxs ] = sort( totCompact );
idxCompact = idxCompact( sortIdxs );
nnzCompact = nnzCompact( sortIdxs );

PlotIdxNonZeroCompactionVsTotalCompaction( totCompact( eIdxs ), idxCompact( eIdxs ), nnzCompact( eIdxs ), params, '../gfx/INZCompactionVsTotCompaction_EvenMtxs' );
PlotIdxNonZeroCompactionVsTotalCompaction( totCompact( oIdxs ), idxCompact( oIdxs ), nnzCompact( oIdxs ), params, '../gfx/INZCompactionVsTotCompaction_OddMtxs' );
